<?php


namespace app\common\model;


use think\Model;

class News extends Model
{
    public function index($map,$order,$size=10,$field='*')
    {
        return $this->where($map)->order($order)->field($field)->paginate($size);
    }

}